
$(function(){
	$("#addDevBtn").click(function(){
		$("#addDevPanel").modal({backdrop: 'static', keyboard: false});
	});
	
	$("#saveDevCfgBtn").click(function(){
		alert(1);
		
		if($("#devCfgPanel").valid()==false) {
			return false;
		}
		$.post("./saveDevCfg" , {
			manageUrl : $("#manageUrl").val()
		}, function(data,status){
			$("#devCfgMsgDiv").show().html(data.msg);
			if(data && data.status==true) {
				$("#devCfgMsgDiv").attr("class", "alert alert-success");
				$("#manageUrl").val('');
			}else{
				$("#devCfgMsgDiv").attr("class", "alert alert-warning");
			}
		});
	});
	
});